<include file="Index/header" />
<include file="Index/left" />
<!-- 内容区域 -->
<script src="Public/js/kindeditor/kindeditor-all.js"></script>
<div class="tpl-content-wrapper">
    <div class="row-content am-cf">
        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">编辑用户</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">

                        <form class="am-form tpl-form-border-form tpl-form-border-br" id="missj-form">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">用户名</label>
                                <div class="am-u-sm-9">
                                    {$user.username}
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">密码</label>
                                <div class="am-u-sm-9">
                                    <input type="password" class="tpl-form-input" name="password" placeholder="若不修改密码请留空">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-weibo" class="am-u-sm-3 am-form-label">头像</label>
                                <div class="am-u-sm-9">
                                    <div class="am-form-group am-form-file">
                                        <div class="tpl-form-file-img">
                                            <img id="upload_org_code_img" src="{$user.thumb}" alt="" width="100"  height="100">
                                        </div>
                                        <input id="file_upload"  type="file" multiple="true" >
                                        <input id="file_upload_image" name="thumb" type="hidden" multiple="true" value="{$user.thumb}">
                                    </div>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">真实姓名</label>
                                <div class="am-u-sm-9">
                                    <input type="text" placeholder="真实姓名" value="{$user.realname}" name="realname">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">E-Mail</label>
                                <div class="am-u-sm-9">
                                    <input type="text" placeholder="E-Mail" value="{$user.email}" name="email">
                                </div>
                            </div>
                            <input type="hidden" name="id" value="{$user['id']}"/>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success" id="missj-button-submit">提交</button>
                                </div>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script>
    var SCOPE = {
        'save_url' : 'admin.php?c=admin&a=save',
        'jump_url' : 'admin.php?c=admin',
        'ajax_upload_image_url' : 'admin.php?c=image&a=ajaxuploadimage',
        'ajax_upload_swf' : 'Public/js/party/uploadify.swf',
    };
</script>
<script src="Public/js/admin/image.js"></script>
<script>
    // 6.2
    KindEditor.ready(function(K) {
        window.editor = K.create('#editor_singcms',{
            uploadJson : 'admin.php?c=image&a=kindupload',
            afterBlur : function(){this.sync();}, //
        });
    });
</script>
<include file="Index/footer" />